package com.vrv.app.cyberspace.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@TableName("INFORMATION_TABLE")
public class InformationTable extends Model<InformationTable> {

    private static final long serialVersionUID = 1L;

	@TableId("baseID")
	private Integer baseID;
    /**
     * 信息来源
     */
	private String sources;
	private String link;
    /**
     * 类型
     */
	@NotBlank(message="type不能为空")
	private String type;
    /**
     * 内容
     */
	@NotBlank(message="content不能为空")
	private String content;
    /**
     * 初步研判
     */
	private String primaryJudgment;

	@TableField(exist = false)
	private List<InformationTypeTable> informationTypeList;

	@TableField(exist = false)
	private String informationTypeListString;


	public Integer getBaseID() {
		return baseID;
	}

	public void setBaseID(Integer baseID) {
		this.baseID = baseID;
	}

	public String getSources() {
		return sources;
	}

	public void setSources(String sources) {
		this.sources = sources;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPrimaryJudgment() {
		return primaryJudgment;
	}

	public void setPrimaryJudgment(String primaryJudgment) {
		this.primaryJudgment = primaryJudgment;
	}

	@Override
	protected Serializable pkVal() {
		return this.baseID;
	}

	@Override
	public String toString() {
		return "InformationTable{" +
			", baseID=" + baseID +
			", sources=" + sources +
			", link=" + link +
			", type=" + type +
			", content=" + content +
			", primaryJudgment=" + primaryJudgment +
			"}";
	}

	public List<InformationTypeTable> getInformationTypeList() {
		return informationTypeList;
	}

	public void setInformationTypeList(List<InformationTypeTable> informationTypeList) {
		this.informationTypeList = informationTypeList;
	}

	public String getInformationTypeListString() {
		return informationTypeListString;
	}

	public void setInformationTypeListString(String informationTypeListString) {
		this.informationTypeListString = informationTypeListString;
	}
}
